package com.hpeu_12.zuoye1224;
/*
 * 一个5位数，判断它是不是回文数。即12321是回文数，个位与万位相同，十位与千位相同，
 * 获取10000-99999中是回文数的数，并打印出来。
 */
public class Test07 {
	public static void main(String[] args) {
		for (int i = 10000; i < 100000; i++) {
			if ((i%10 == i/10000) && ((i%100)/10 == (i%10000)/1000)) {
				//进来就说明个位与万位相同 十位与千位相同
				System.out.println(i);
			}
		}
		/*int number = 45678;
		int ge = number%10;
		int wan = number/10000;
		int shi = (number%100)/10;
		int qian = (number%10000)/1000;
		System.out.println(ge);
		System.out.println(wan);
		System.out.println(shi);
		System.out.println(qian);*/
	}
}
